package com.zhk.entry.mapper;


import com.zhk.entry.dao.BaseDaoService;

import java.sql.Connection;
import java.util.List;

public interface GoodsMapperService<Goods>  extends BaseDaoService<Goods> {

    /**
     * 全部查询
     *
     * @return
     */
    List<Goods> getGoodsAll();

    /**
     * 条件查询
     *
     * @return
     */
    List<Goods> getGoods(Goods goods);

    /**
     * 保存商品
     *
     * @param goods
     * @return
     */
    String saveGoods(Goods goods, Connection conn);
    /**
     * 修改
     *
     * @param goods
     * @return
     */
    String updateGoods(Goods goods);

    /**
     * 删除用户
     *
     * @param goods
     * @return
     */
    String deleteUser(Goods goods);

    String  updateByName(String name);

    String name commintOne

    String name commintTwo
}
